<?php

namespace app\lmsx\validate;
use think\Validate;

/**
 * 文章评论验证
 * @author lan
 */
class Comment extends Validate
{
    //定义验证规则
    protected $rule = [
        'content|评论内容'  => 'require|max:200',
        'article_id|评论文章'  => 'require',

    ];

    //定义验证提示
    protected $message = [
        'content.max' => '评论内容最多不能超过200个字符',
    ];

}
